package nix.bs.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import nix.bs.service.CategoryService;
import nix.servlet.BaseServlet;

public class CategoryServlet extends BaseServlet {

	private CategoryService categoryService = new CategoryService();

	public String findAll(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		request.setAttribute("categoryList", categoryService.findAll());
		return "f:/bs/jsps/left.jsp";
	}
}
